<!DOCTYPE html>
<html>
<body>
  <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=85797 -->
  <div>PASS (didn't crash).</div>
  <div style="width: 100px;">
    <svg style="width: fit-content;"/>
  </div>
  <script>
    if (window.testRunner)
      testRunner.dumpAsText();
  </script>
</body>
</html>

